package cn.fintecher.gis.exception;

import java.io.Serializable;

/**
 * Created by ChenChang on 2018/6/8.
 */
public class BadRequestException extends RuntimeException implements Serializable{
    private Object[] args;
    private String objectName;

    public BadRequestException(String objectName, String message) {
        super(message);
        this.objectName = objectName;
        this.args = null;

    }
//    public BadRequestException(String objectName, String message) {
//        new BadRequestException(null,objectName,message);
//    }
    public String getObjectName() {
        return objectName;
    }

    public Object[] getArgs() {
        return args;
    }
}
